package com.zhehekeji.opsys.api.resp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.zhehekeji.opsys.api.common.util.SuperResp;

/**
 * @ClassName GetVoteListResp
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2017-4-26   下午4:22:07
 */
@XmlRootElement
public class GetVoteListResp extends SuperResp {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4686723174392515079L;
	private Integer recordSize;
	private List<VoteInfo> voteInfos;
	
	public Integer getRecordSize() {
		return recordSize;
	}

	public void setRecordSize(Integer recordSize) {
		this.recordSize = recordSize;
	}

	public List<VoteInfo> getVoteInfos() {
		return voteInfos;
	}

	public void setVoteInfos(List<VoteInfo> voteInfos) {
		this.voteInfos = voteInfos;
	}

	public static class VoteInfo implements Serializable{

		/**
		 * 
		 */
		private static final long serialVersionUID = 5966351566224183544L;
		private String code;
		private String name;
		private Integer voteBase;
		private Integer vipVoteBase;
		private Integer voteTimes;
		private Integer voteTimes4k;
		private Integer voteTimesHd;
		private String startTime;
		private String endTime;
		private String rule;
		private Long cpCode;
		private Integer status;
		//投票次数的有效期：0-活动每天；1-活动期间
		private Integer voteTimesValidity;
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public Integer getVoteBase() {
			return voteBase;
		}
		public void setVoteBase(Integer voteBase) {
			this.voteBase = voteBase;
		}
		public Integer getVipVoteBase() {
			return vipVoteBase;
		}
		public void setVipVoteBase(Integer vipVoteBase) {
			this.vipVoteBase = vipVoteBase;
		}
		public Integer getVoteTimes() {
			return voteTimes;
		}
		public void setVoteTimes(Integer voteTimes) {
			this.voteTimes = voteTimes;
		}
		public Integer getVoteTimes4k() {
			return voteTimes4k;
		}
		public void setVoteTimes4k(Integer voteTimes4k) {
			this.voteTimes4k = voteTimes4k;
		}
		public Integer getVoteTimesHd() {
			return voteTimesHd;
		}
		public void setVoteTimesHd(Integer voteTimesHd) {
			this.voteTimesHd = voteTimesHd;
		}
		public String getStartTime() {
			return startTime;
		}
		public void setStartTime(String startTime) {
			this.startTime = startTime;
		}
		public String getEndTime() {
			return endTime;
		}
		public void setEndTime(String endTime) {
			this.endTime = endTime;
		}
		public String getRule() {
			return rule;
		}
		public void setRule(String rule) {
			this.rule = rule;
		}
		public Long getCpCode() {
			return cpCode;
		}
		public void setCpCode(Long cpCode) {
			this.cpCode = cpCode;
		}
		public Integer getStatus() {
			return status;
		}
		public void setStatus(Integer status) {
			this.status = status;
		}
		public Integer getVoteTimesValidity() {
			return voteTimesValidity;
		}
		public void setVoteTimesValidity(Integer voteTimesValidity) {
			this.voteTimesValidity = voteTimesValidity;
		}
		@Override
		public String toString() {
			return "VoteInfo [code=" + code + ", name=" + name + "]";
		}
	}
}

